package com.runjian.rundo.iot.agent.common.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

import com.runjian.rundo.iot.agent.common.consts.ConfigurationPropertiesConst;

import lombok.Getter;
import lombok.Setter;

/**
 * 默认启动定时器
 *
 * @author CaoQingHua
 */
@Setter
@Getter
@Component
@ConditionalOnProperty(value = ConfigurationPropertiesConst.NETWORK_SCHEDULED_ROOT, havingValue = "true", matchIfMissing = true)
public class ScheduledConfigurationProperties {

    /**
     * 任务工作线程大小
     */
    private int scheduledTaskWorkerSize = 20;

    /**
     * 监控输出的秒数
     */
    private long monitorSeconds = 300;
}
